 using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using buildingLib.engineering;
namespace _dmis.engineering
{
    public partial class MaintainInfoDlg : _dmis.UIToolBase
    {
        public MaintainInfoDlg()
        {
            InitializeComponent();            
        }

        public MaintainInfoDlg(Maintain maintain, FeedBack feedback)
        {
            cmaintain.HideToolBar();
            cmaintain.SetMaintainInfo(maintain, feedback);
        }

        public void GetMaintainInfo(Guid maintainID)
        {
            Maintain maintain = Maintain.GetMaintain(maintainID);
            FeedBack feedback = FeedBack.GetFeedBack(maintainID);
            cmaintain.SetMaintainInfo(maintain, feedback);
        }
    }
}

